import utils from '@/mixins/utils.js';
export default {
  name: 'preview_parkingLotInfo',
  props: ['parkId'],
  mixins: [utils],
  data() {
    return {
      parkInfo: null
    };
  },
  created() {
    this.getParkBaseInfo();
  },
  filters: {},
  methods: {
    getParkBaseInfo() {
      var params = {
        parkID: this.parkId
      };
      API.fetchGet('/operatorPark/getOperatorParkBaseInfo', params).then(
        res => {
          if (res.data) {
            this.parkInfo = res.data;
          }
        },
        err => {}
      );
    }
  }
};
